package com.hc.music.controller;

import com.alibaba.fastjson.JSONObject;
import com.hc.music.common.R;
import com.hc.music.entity.Manager;
import com.hc.music.service.ManagerService;
import com.hc.music.util.Const;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("manager")
public class ManagerController {

    @Autowired
    private ManagerService managerService;

    @RequestMapping(value = "login/status",method = RequestMethod.POST)
    public R verifyPassword(@RequestBody Manager manager, HttpSession session){
        return managerService.verifyPassword(manager, session);
    }
}
